MailPoet\API\JSON\API S

Total Complexity 47
Dependencies 18
Dependents 6
Total lines 256
Lines of code 182
Logical lines of code 79
Comment lines 16
Methods 13
Properties 14

Methods 13

Method Rating Maintainability Complexity Lines of code
setRequestData()
A
43 15 48
processRoute()
A
45 13 41
setupAjax()
S
53 6 20
__construct()
S
61 2 13
init()
S
59 1 18
validatePermissions()
S
72 2 5
addEndpointNamespace()
S
74 2 4
setTokenAndAPIVersion()
S
65 1 10
addTokenToHeartbeatResponse()
S
76 1 4
getEndpointNamespaces()
S
82 1 3
getRequestedEndpointClass()
S
82 1 3
getRequestedAPIVersion()
S
82 1 3
createErrorResponse()
S
66 1 10